﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="updateUser.aspx.cs" Inherits="admin_updateUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/body.css" rel="stylesheet" type="text/css" />
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            text-align: left;
            width:400px;
            margin-left:50px;
            margin-top:30px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <table class="tab"  style="text-align: left">
            <tr>
                <td>
                    用户编号：
                </td>
                <td>
                    <asp:TextBox ID="tb_id" runat="server" ReadOnly=true></asp:TextBox><font color="red">*自动生成</font>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="tb_id" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    用户名：
                </td>
                <td>
                    <asp:TextBox ID="tb_name" runat="server" ReadOnly="True"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="tb_name" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    电子邮件：
                </td>
                <td>
                    <asp:TextBox ID="tb_email" runat="server"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="tb_email" ErrorMessage="*" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="tb_email" Display="Dynamic" ErrorMessage="地址错误" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
         
            <tr>
                <td>
                    性别：</td>
                <td>
                    <asp:RadioButton ID="rbtn_man" runat="server" Text="男" GroupName="sex" />
&nbsp;
                    <asp:RadioButton ID="rbtn_woman" runat="server" Text="女" GroupName="sex" />
                </td>
            </tr>
         <tr>
                <td>
                    状态：</td>
                <td>
                    
                    <asp:DropDownList ID="ddl_status" runat="server">
                        <asp:ListItem Value="0">正常</asp:ListItem>
                        <asp:ListItem Value="1">停用</asp:ListItem>
                    </asp:DropDownList>
                    
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btn_ok" runat="server" Text="修改" OnClick="btn_ok_Click" Width="50px" />
                    &nbsp;
                    <asp:Button ID="btn_res" runat="server" OnClick="btn_res_Click" Text="重置" 
                        Width="50px" CausesValidation="False" />
                </td>
            </tr>
            
        </table>
    </div>
    </form>
</body>
</html>
